//
//  BaseDataViewController.m
//  LoanTeam15
//
//  Created by gynjobs on 2017/8/18.
//  Copyright © 2017年 cangming. All rights reserved.
//

#import "BaseDataViewController.h"

@interface BaseDataViewController ()

@end

@implementation BaseDataViewController
-(instancetype) init{
    
    if(self = [super init]){
        
        self.itemData = nil;
        self.delegate = nil;
    }
    
    return self;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void) callBackDelegate:(id) dic{
    
    if(self.itemData){
        
        [dic setValue:self.itemData.key forKey:@"key" ];
    }
    
    [self.delegate callBackData:dic];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
